﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.OracleClient;
namespace BLL.Sec
{
    /// <summary>
    /// 业务逻辑类UserGroupOperate 的摘要说明。
    /// </summary>
    public class UserGroupOperate
    {
       
         private readonly OracleDAL.Sec.UserGroupOperate dal = new OracleDAL.Sec.UserGroupOperate();
		public UserGroupOperate()
		{
             
        }
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(string USERGROUPISN,string BELONGSYSTEM,string OPERATEID,int ENABLED)
		{
			return dal.Exists(USERGROUPISN,BELONGSYSTEM,OPERATEID,ENABLED);
		}

		/// <summary>
		/// 增加一条数据
		/// </summary>
		public void Add(Model.Sec.UserGroupOperate model)
		{
			dal.Add(model);
		}

		/// <summary>
		/// 更新一条数据
		/// </summary>
		public void Update(Model.Sec.UserGroupOperate model)
		{
			dal.Update(model);
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public void Delete(string USERGROUPISN,string BELONGSYSTEM,string OPERATEID,int ENABLED)
		{
			
			dal.Delete(USERGROUPISN,BELONGSYSTEM,OPERATEID,ENABLED);
		}

		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public Model.Sec.UserGroupOperate GetModel(string USERGROUPISN,string BELONGSYSTEM,string OPERATEID,int ENABLED)
		{
			
			return dal.GetModel(USERGROUPISN,BELONGSYSTEM,OPERATEID,ENABLED);
		}
        /// <summary>
        /// 返回用户组BS的权限,返回的OperateID以","分开
        /// </summary>
        /// <param name="UserGroupISN"></param>
        /// <returns>返回的OperateID以","分开</returns>
        public string GetOperateID(string UserGroupISN)
        {
            return dal.GetOperateID(UserGroupISN);
        }
        /// <summary>
        /// 返回用户组BS的权限但不包括按钮,返回的OperateID以","分开
        /// </summary>
        /// <param name="UserGroupISN"></param>
        /// <returns>返回的OperateID以","分开</returns>
        public string GetOperateIDExceptButton(string UserGroupISN)
        {
            return dal.GetOperateIDExceptButton(UserGroupISN);
        }
        /// <summary>
        /// 获取用户组下一级有权限的OperateID
        /// </summary>
        /// <param name="ParentTreeOrder"></param>
        /// <param name="UserGroupISN"></param>
        /// <returns>返回的OperateID以","分开</returns>
        public string getChildrenOperateID(string ParentTreeOrder, string UserGroupISN)
        {
            return dal.getChildrenOperateID(ParentTreeOrder, UserGroupISN);
        }
    	#endregion  成员方法
	}
}
